﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CommunityToolkit.Mvvm.ComponentModel;

namespace EZhouReportConvertTool
{
    public partial class BinMapViewModelItem : ObservableObject
    {
        public BinMap BinMap{ get; }

        public BinMapViewModelItem(BinMap binMap)
        {
            BinMap = binMap;
        }



        public string OriginalBinCode
        {
            get => BinMap.OriginalBinCode;
            set
            {
                BinMap.OriginalBinCode = value;
                OnPropertyChanged();
            }
        }


        public string NewBinCode
        {
            get => BinMap.NewBinCode;
            set
            {
                BinMap.NewBinCode = value;
                OnPropertyChanged();
            }
        }

        public uint BinLevel
        {
            get => BinMap.BinLevel;
            set
            {
                BinMap.BinLevel = value;
                OnPropertyChanged();
            }
        }


    }
}
